package com.zw.yzk.kabu.data.network.entity;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhanwei on 2017/3/12.
 */

public class GoodsOrderEntity extends Entity {

    @Expose
    @SerializedName("result")
    public Result result;

    public GoodsOrderEntity() {
        result = new Result();
        result.orderList = new ArrayList<>();
    }

    public class Result {
        @Expose
        @SerializedName("total_rows")
        public int total;
        @Expose
        @SerializedName("order_list")
        public List<Order> orderList;
    }

    public static class Goods {
        @Expose
        @SerializedName("id")
        public int id;
        @Expose
        @SerializedName("order_id")
        public String orderId;
        @Expose
        @SerializedName("original_price")
        public float originalPrice;
        @Expose
        @SerializedName("number")
        public int count;
        @Expose
        @SerializedName("product_property")
        public String property;
        @Expose
        @SerializedName("total_price")
        public float totalPrice;
        @Expose
        @SerializedName("product_cover_image_url")
        public String image;
        @Expose
        @SerializedName("discounted_price")
        public float discountedPrice;
        @Expose
        @SerializedName("product_id")
        public int goodsId;
        @Expose
        @SerializedName("product_name")
        public String name;
    }

    public static class Order {
        @Expose
        @SerializedName("trade_end_time")
        public String tradeEndTime;
        @Expose
        @SerializedName("id")
        public String id;
        @Expose
        @SerializedName("receiver_address")
        public String receiverAddress;
        @Expose
        @SerializedName("total_price")
        public float totalPrice;
        @Expose
        @SerializedName("receiver_name")
        public String receiverName;
        @Expose
        @SerializedName("user_id")
        public int userId;
        @Expose
        @SerializedName("unified_order_id")
        public String unifiedOrderId;
        @Expose
        @SerializedName("freight")
        public float freight;
        @Expose
        @SerializedName("receiver_info_id")
        public int receiverInfoId;
        @Expose
        @SerializedName("create_time")
        public String createTime;
        @Expose
        @SerializedName("receiver_phone")
        public String receiverPhone;
        @Expose
        @SerializedName("order_id")
        public String orderId;
        @Expose
        @SerializedName("wx_transaction_id")
        public String wxTransactionId;
        @Expose
        @SerializedName("shop_id")
        public int shopId;
        @Expose
        @SerializedName("shop_name")
        public String shopName;
        @Expose
        @SerializedName("order_type")
        public int orderType;
        @Expose
        @SerializedName("airway_bill")
        public int airwayBill;
        @Expose
        @SerializedName("logistic_code")
        public String logisticId;
        @Expose
        @SerializedName("note")
        public String note;
        @Expose
        @SerializedName("product_list")
        public List<Goods> goodsList;
        @Expose
        @SerializedName("refund_start_time")
        public String refundTime;
        @Expose
        @SerializedName("refund_state")
        public int refundState;
    }
}
